package com.example.dingtalk;

import com.aliyun.dingtalkoauth2_1_0.models.GetUserTokenRequest;
import com.aliyun.dingtalkoauth2_1_0.models.GetUserTokenResponse;

public interface DingTalkClient {

    /**
     * 获取用户令牌
     * @param clientId 客户端ID
     * @param clientSecret 客户端密钥
     * @return 用户令牌
     * @throws Exception 如果获取过程中发生错误
     */
    String getUserToken(String clientId, String clientSecret) throws Exception;
}
